/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Login;

/**
 *
 * @author Axioo
 */
public class Login {

    public static Login getLogin() {
        return login;
    }

    public static void setLogin(Login aLogin) {
        login = aLogin;
    }
    private String userName;
    private String password;
    private boolean conn;
    private static Login login;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean getConnection(Login login) {
        Koneksi konek = new Koneksi();
        boolean test = konek.getDBConnection(login);
        if (test == true) {
            conn = true;
        } else {
            conn = false;
        }
        return conn;

    }
}
